﻿<%@ Page Title="" Language="C#" MasterPageFile="~/LotteryMasterPage.master" AutoEventWireup="true" CodeFile="ReportRD.aspx.cs" Inherits="ReportRD" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

<div id="navMenu">
<ul>
    <li class="onelink"><a href='AreaMan.aspx'>首页</a></li>
    <li><a rel='dropmenu1'>评分</a></li>
    <li><a href='AreaAnnoList.aspx'>公告</a></li>
    <li><a rel='dropmenu4'>通知</a></li>
    <li><a href='ReportRD.aspx'>报表</a></li>
    </ul>
</div>
<script type='text/javascript' src='../Scripts/dropdown.js'></script>
<script type="text/javascript">    cssdropdown.startchrome("navMenu")</script>
<div class="RepoMainBody">
<div class="RepoBody">
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:testLottery %>" 
        
        SelectCommand="SELECT [id], [name] FROM [Report] WHERE member=session[&quot;uid&quot;]"></asp:SqlDataSource>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataSourceID="SqlDataSource1" AllowPaging="True" Width="700px" 
        Height="380px" CellPadding="4" ForeColor="#333333" GridLines="None" 
        onselectedindexchanged="GridView1_SelectedIndexChanged">
        <AlternatingRowStyle BackColor="White" />
        <Columns>
            <asp:BoundField DataField="id" HeaderText="序号" SortExpression="id"  ItemStyle-HorizontalAlign="Center">
            <ControlStyle ForeColor="Black" />
            </asp:BoundField>
            <asp:TemplateField HeaderText="报表名" SortExpression="name"  ItemStyle-HorizontalAlign="Center">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("name") %>'></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <a href='ReportDe.aspx?id=<%# Eval("id") %>'>
                    <asp:Label ID="Label1" runat="server" Text='<%# Bind("name") %>'></asp:Label>
                    </a>
                </ItemTemplate>
                <ControlStyle ForeColor="Black" />
            </asp:TemplateField>
            <asp:HyperLinkField NavigateUrl="ReportDE.aspx" />
        </Columns>
        <EditRowStyle BackColor="#2461BF" />
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#EFF3FB" />
        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#F5F7FB" />
        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
        <SortedDescendingCellStyle BackColor="#E9EBEF" />
        <SortedDescendingHeaderStyle BackColor="#4870BE" />
    </asp:GridView>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:Label ID="promptLabel" runat="server" Text="无报表"></asp:Label>
    </div>
    </div>
    <script type='text/javascript' src='../Scripts/dropdown.js'></script>
<ul id="dropmenu1" class="dropMenu">
    <li><a href="AreaManSc.aspx" >站点评分</a></li>
    <li><a href="AreaManGetScaspx.aspx" >获取评分</a></li>
    <li class="end" ></li>
</ul>


<ul id="dropmenu4" class="dropMenu">
    <li><a href="AreaCommentList.aspx" >读通知</a></li>
    <li><a href="AreaWrComment.aspx" >写通知</a></li>
    <li class="end" ></li>
</ul>
<script type="text/javascript">    cssdropdown.startchrome("navMenu")</script>
</asp:Content>

